<?php
namespace App\Http\Controllers\Web;

use App\Http\Controllers\Web\BaseController;
use Illuminate\Http\Request;

class GuestbookController extends BaseController{

    protected  $api_url = [
        'store' => ['post', 'guestbook'],
    ];


    protected $request;

    public function __construct(Request $request)
    {
        $this->request = $request;
    }
    public function store(){
        $data=$this->request->all();
        $ret = http_web($this->api_url['store'])->send($data);

        return response()->json(['code'=>0,'message'=>'','data'=>$ret['data']]);
    }
}